package com.ruoyi.web.core.config;

import com.ruoyi.school.service.StudentService;
import com.ruoyi.school.utils.CommonUtils;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

@Configuration
public class AppConfig {

    @Resource
    private StudentService studentService;

    @PostConstruct
    public void init() {
        CommonUtils.init(studentService);  // 初始化静态工具类
    }
}